Explanation of Old Faithful Linear Regression Shiny Application

David Haycraft

03-30-2019

Purpose

The goal of this project was to build a tool that could be used to predict how long Old Faithful was going to erupt based on the length of waiting time.

Old Faithful erupting

Figure 1: Old Faithful erupts in front of a throng of tourists

Old Faithful Geyser Data

Waiting time between eruptions and the duration of the eruption for the Old Faithful geyser in Yellowstone National Park, Wyoming, USA.

Old Faithful at Night

Figure 2: Old Faithful with the Milky Way overhead.

Plot of Waiting Time Versus Eruption Time

As we can see below a linear model is a fairly accurate predictor of eruption time.

Model Summary

The model summary output from can be seen below.

  eruptions
Predictors Estimates CI p
(Intercept) -1.87 -2.19 – -1.56 <0.001
waiting 0.08 0.07 – 0.08 <0.001
Observations 272
R2 / adjusted R2 0.811 / 0.811